Finding ID | Version | Rule ID | IA Controls | Severity |
---|---|---|---|---|
V-92779 | AS24-U2-000350 | SV-102867r1_rule | Medium |
Description |
---|
A web server is designed to deliver content and execute scripts or applications on the request of a client or user. Containing user requests to files in the directory tree of the hosted web application and limiting the execution of scripts and applications guarantees that the user is not accessing information protected outside the application's realm. The web server must also prohibit users from jumping outside the hosted application directory tree through access to the user's home directory, symbolic links or shortcuts, or through search paths for missing files. |
STIG | Date |
---|---|
Apache Server 2.4 UNIX Site Security Technical Implementation Guide | 2019-10-03 |
Check Text ( C-92085r1_chk ) |
---|
Determine the location of the "HTTPD_ROOT" directory and the "httpd.conf" file: # httpd -V | egrep -i 'httpd_root|server_config_file' -D HTTPD_ROOT="/etc/httpd" -D SERVER_CONFIG_FILE="conf/httpd.conf" Verify there is a single "Require" directive with the value of "all denied". Verify there are no "Allow" or "Deny" directives in the root The following may be useful in extracting root directory elements from the Apache configuration for auditing: # perl -ne 'print if /^ * If there are "Allow" or "Deny" directives in the root |
Fix Text (F-99023r1_fix) |
---|
Determine the location of the "HTTPD_ROOT" directory and the "httpd.conf" file: # httpd -V | egrep -i 'httpd_root|server_config_file' -D HTTPD_ROOT="/etc/httpd" -D SERVER_CONFIG_FILE="conf/httpd.conf" Set the root directory directive as follows: ... Require all denied ... Remove any "Deny" and "Allow" directives from the root Restart Apache: apachectl restart |